<%@ page import="entity.hotel_employee" %><%--
  Created by IntelliJ IDEA.
  User: a3502
  Date: 2022/4/27
  Time: 22:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>个人中心</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/hotelSystem/layui/css/layui.css"  media="all">
</head>
<body>
<%
    hotel_employee hotel_employee = (hotel_employee)request.getAttribute("hotel_employee");
    String fileTip = (String)request.getAttribute("fileTip");
    String successTip = (String)request.getAttribute("successTip");
    if (fileTip!=null){
%>
        <h1>fileTip</h1>
<%
    }else if(successTip!=null){
%>
        <h1><a href="../loginRegister/loginRegister.jsp" style="color: #dd578d"><%=successTip%></a></h1>
<%
    } else {


%>
<table class="layui-table">
    <colgroup>
        <col width="150">
        <col width="150">
        <col width="200">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>员工编号</th>
        <th>员工姓名</th>
        <th>员工性别</th>
        <th>员工职位</th>
        <th>联系方式</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <th><%=hotel_employee.getEmployee_id() %></th>
        <th><%=hotel_employee.getEmployee_name() %></th>
        <th><%=hotel_employee.getEmployee_sex().equals("0")?" 女":" 男"%></th>
        <th><%=hotel_employee.getEmployee_job() %></th>
        <th><%=hotel_employee.getEmployee_tel()%></th>
    </tr>
    </tbody>
</table>

<form class="layui-form" action="/hotelSystem/employee/EmployeeChangeInfoController.do">
    <div class="layui-form-item">
        <label class="layui-form-label">请更改姓名</label>
        <div class="layui-input-block">
            <input type="text" name="employee_name" lay-verify="required" lay-reqtext="姓名不可为空" placeholder="请输入姓名" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
            <input type="radio" name="employee_sex" value="1" title="男" checked="">
            <input type="radio" name="employee_sex" value="0" title="女">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">更改密码</label>
        <div class="layui-input-inline">
            <input type="password" name="password" lay-verify="pass" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">确认密码</label>
        <div class="layui-input-inline">
            <input type="password" name="rePassword" lay-verify="pass" placeholder="请再次确认密码" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<%
    }
%>
<script src="/hotelSystem/layui/layui.js" charset="utf-8"></script>
</body>
</html>
